package com.wx.mall.goods.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class AppaiseDto {

    @ApiModelProperty("当前页")
    @NotNull(message = "不能为空")
    private Integer pageNum;

    @ApiModelProperty("页数")
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "spu的商品名称")
    private String spuName;

    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @ApiModelProperty("排序方式:0为用户昵称,1为商品名称")
    @FlagValidator(value = {"0","1"},message = "状态不正确")
    private int type;
}
